Skip to content

Fix deprecated as_slice() calls in aws-smithy-checksums#4347

Merged
rcoh merged 1 commit intomainfrom
fix-deprecated-as-slice
Oct 13, 2025
Merged

Fix deprecated as_slice() calls in aws-smithy-checksums#4347
rcoh merged 1 commit intomainfrom
fix-deprecated-as-slice

Conversation

@rcoh
Copy link
Collaborator

@rcoh rcoh commented Oct 13, 2025

Motivation and Context

This PR fixes deprecation warnings from the generic-array crate upgrade by replacing deprecated as_slice() method calls with as_ref().

Description

  • Replaced as_slice() with as_ref() in SHA1, SHA256, and MD5 checksum implementations
  • Bumped aws-smithy-checksums version from 0.63.9 to 0.63.10

Testing

  • cargo check passes
  • cargo test passes (all 20 tests)
  • ✅ Pre-commit hooks pass

Checklist

  • I have updated Cargo.toml if I made changes to dependencies
  • I have updated the version number if I made changes to the crate
  • I have run cargo test locally and it passes
  • I have run cargo clippy locally and it passes

Fixes the following compilation warnings:

error: use of deprecated method `sha1::digest::generic_array::GenericArray::<T, N>::as_slice`: please upgrade to generic-array 1.x

Replace deprecated as_slice() method calls with as_ref() to resolve
deprecation warnings from generic-array upgrade. This affects SHA1,
SHA256, and MD5 checksum implementations.

Fixes compilation warnings:
- error: use of deprecated method GenericArray::as_slice
- help: please upgrade to generic-array 1.x

Bumps version from 0.63.9 to 0.63.10.
@rcoh rcoh requested a review from a team as a code owner October 13, 2025 16:16
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@rcoh rcoh enabled auto-merge (squash) October 13, 2025 16:52
@rcoh rcoh merged commit 2d89966 into main Oct 13, 2025
50 checks passed
@rcoh rcoh deleted the fix-deprecated-as-slice branch October 13, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants